#from datetime import datetime 
#raw
<script>
$(function(){
	var uid = $("#logged_uid").val(); 
    $.post("/user_profile",{'uid':uid},function(data){  
		$("#userInfo").prepend(data);
    });
});
</script>
#end raw     
<div class="tContent01">
<div id="main" class="main">
<div class="topBar001"></div>
<div class="nC1">
<div class="MIB_600 MIB_txtal">
	<div class="msg_lf clearFix titmg10">
		<div class="titmg10"><span class="font_14 fb">我和“$thread.uid2”的对话</span></div>
		<div class="lf"><a href="/msg"><em>&lt;&lt;</em>返回所有私信</a></div>
		<div class="rt">
			<div class="chdd">
				<form action="#">
					<label><input id="searchkeyword" name="searchkeyword" type="text" style="color: rgb(153, 153, 153); " class="txt_s2" value="查找联系人 / 搜索私信内容"/>
					<a id="search_btn" href="javascript:void(0)" class="btn_normal btnxs"><em>搜索</em></a>
				</label>
			    </form>
			</div>
		</div>
	</div>
    <div class="sendMsg_form">
	  <div class="lf">
	    <p class="seword"><span class="icon_send" id="msg_nick" title="$thread.uid2">发私信给：$thread.uid2</span> <span id="msg_info" class="leaveWord">你还可以输入<font class="num">300</font>字</span> </p>
	    <div class="seMsInput">
	      <div class="tear_top"></div>
	      <div class="tear_cen"> <span class="arr"></span>
	        <textarea id="msg_editor" name="msg_editor" cols="" rows="" class="textarea" style="overflow-y: hidden; overflow-x: hidden; height: 50px; "></textarea>
	      </div>
	      <div class="tear_bottom">
	        <div id="msg_faces" class="OnTit">
	        	<img title="表情" class="small_icon faceicon"  src="/static/css/images/msg/transparent.gif"/> 
	        	<a href="javascript:void(0)">表情</a> 
	        </div>
	        <a id="msg_submit" class="btn_send" onclick="send_msg()" href="javascript:void(0)">发送</a> 
	        </div>
	    </div>
	  </div>
	  #set image = '/static/avatar/%s_50.jpg'%$thread.uid1
	  <div class="rt_pic"> <a href="#"><img class="picborder_l" src="$image"/></a> </div>
	 </div>
	<ul class="MIB_msg" id="msg_list">
	  #set msgs = $thread.msgs
	  #for msg in $msgs
	  #if $msg.from == $thread.uid1
	  <li id="$msg._id" class="MIB_msg_r">
	  	#set image = '/static/avatar/%s_50.jpg'%$thread.uid1
	    <div class="head_pic"><a href="#"><img class="picborder_l" src="$image"/></a></div>
	    <div class="MIB_msg_c"> <a href="javascript:void(0);" onclick="destroy_msg('$msg._id')" class="msg_close" title="删除"></a>
	      <div class="rd_tr"></div>
	      <div class="rd_tl"></div>
	      <p class="msg_detail gray01">$msg.text<span class="gray01">
	      ($datetime.fromtimestamp($msg.time).strftime('%m月%d日 %H:%M'))
	      </span></p>
	      <div class="feed_att"></div>
	      <div class="rd_br"></div>
	      <div class="rd_bl"></div>
	    </div>
	  </li>
	  
	  #else
	  <li id="$msg._id" class="MIB_msg_l">
	  	#set image = '/static/avatar/%s_50.jpg'%$thread.uid2
	    <div class="head_pic"><a href="#"><img class="picborder_l" src="$image"/></a></div>
	    <div class="MIB_msg_c"> <a href="javascript:void(0);" class="msg_close" onclick="destroy_msg('$msg._id')" title="删除"></a>
	      <div class="rd_tr"></div>
	      <div class="rd_tl"></div>
	      <p class="msg_detail gray01">$msg.text<span class="gray01">
	      ($datetime.fromtimestamp($msg.time).strftime('%m月%d日 %H:%M'))
	      </span></p>
	      <div class="feed_att"><a href="javascript:void(0);" onclick="">回复</a></div>
	      <div class="rd_br"></div>
	      <div class="rd_bl"></div>
	    </div>
	  </li>
	  #end if
	  #end for
	</ul>
	</div>	
</div> <!-- end of nC01 -->
<div class="moreFoot">
    <a onclick="" href="#"><span class=loading style="DISPLAY: none"></span>更 多</a>                    
</div>
</div> <!-- end of main -->

<div class="side">
	<div class="tTopBarBg01"></div>
	<div id="userInfo"> </div> 
</div><!-- end side -->

<div class="clear"></div>
</div><!-- end of tContent01 -->